<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : page header

    // target      : Windows, php, ODBC
    // page_type   : list grid
    // arg         : startrow, int, get, page
    // arg         : maxrows, int, get, page

    $a_startrow = $startrow;
    $a_maxrows = $maxrows;
    
    
    
    require('wed_php_odbc.inc');

    // checksum    : 57849
$totalprix = 0;
$totalsomme = 0;
?><html>

<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>cheques_espece.reglement</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="center">&nbsp;</p>
<table cellpadding="0" cellspacing="0" width="1205" align="center">
    <tr>
        <td width="175" height="32">            

            <form name="formA" target="_BLANK" action="http://78.224.63.232/primaire/videgreniermai2013/consultation.php">
                <p align="center"><input type="submit" name="Accueil" value="Accueil Vide Greniers"></p>
            </form>
        </td>
        <td width="230" height="32">            

            <form name="formB" target="_self" action="http://78.224.63.232/primaire/videgreniermai2013/emplacementsnomdate.php">
                <p align="center"><input type="submit" name="EmplRecents" value="Emplacements les plus recents"></p>
            </form>
        </td>
        <td width="183" height="32">
            <form name="formC" target="_self" action="http://78.224.63.232/primaire/videgreniermai2013/emplacementsnom.php">
                <p align="center"><input type="submit" name="EmplNum" value="Emplacements par N°"></p>
            </form>
        </td>
        <td width="204" height="32">
            <p align="center">                        
            <form name="formD" target="_self" action="http://78.224.63.232/primaire/videgreniermai2013/listeordrearrivee.php">
                <p align="center"><input type="submit" name="ExpRecents" value="Exposants les plus recents"></p>
            </form>
        </td>
        <td width="235" height="32">
            <p align="center">                        
            <p align="center">
                        
            <form name="formE" target="_self" action="http://78.224.63.232/primaire/videgreniermai2013/listealphabetique.php">
                <p align="center"><input type="submit" name="ExpAlpha" value="Exposants ordre Alphabétique"></p>
            </form>
        </td>
        <td width="83" height="32">

            <p align="center">
                        
            <form name="formF" target="_self" action="http://78.224.63.232/primaire/videgreniermai2013/financier.php">
                <p align="center"><input type="submit" name="Finances" value="Finances"></p>
            </form>
        </td>
    </tr>
</table>



<p align="center"><b><font size="4">Etat des paiements reçus</font></b></p>

<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : Bloc de table
    // block_type  : list grid

    // server      : Vgreniers
    // userid      : 
    // passwd      : 
    // table       : cheques_espece
    // field       : cheques_espece.reglement, string, null, 50
    // field       : cheques_espece.CompteDereglement, int, null, 0
    // field       : cheques_espece.SommeDesomme, int, null, 0
    // disp_rows   : 10

    $w_disprows = 10;
    
    $w_sqlstr = "SELECT cheques_espece.reglement, cheques_espece.CompteDereglement, cheques_espece.SommeDesomme FROM cheques_espece";
    wed_read_list_process ("Vgreniers", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);

    // checksum    : 24064
?><table border="1" width="578" align="center">
    <tr>
        <td width="141">

            <p align="center"><b>Type de Paiement</b></p>
        </td>
        <td width="176">

            <p align="center"><b>Nombre (exposants)</b></p>
        </td>
        <td width="239">

            <p align="center"><b>Somme</b></p>
        </td>
    </tr>

<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop begin


    for ($w_i = 0; $w_i < $w_rows; $w_i++) {
    	$f_cheques_espece_reglement = $w_record[$w_i][0];
    	$f_cheques_espece_CompteDereglement = $w_record[$w_i][1];
    	$f_cheques_espece_SommeDesomme = $w_record[$w_i][2];

    // checksum    : 29563
?>    <tr>
        <td width="141">

            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,cheques_espece.reglement>
                                  // cache       : "write value"

                                  wed_write($f_cheques_espece_reglement);

                                  // checksum    : 38380
                              ?></p>
        </td>
        <td width="176">

            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,cheques_espece.CompteDereglement>
                                  // cache       : "write value"

                                  wed_write($f_cheques_espece_CompteDereglement);

                                  // checksum    : 4354
                              ?></p>
        </td>
        <td width="239">

            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,cheques_espece.SommeDesomme>
                                  // cache       : "write value"

                                  wed_write($f_cheques_espece_SommeDesomme);

                                  // checksum    : 30460
                              ?></p>
        </td>
    </tr>
<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop end


    }

    // checksum    : 42643
?>

</table>

<p align="center"><b><font size="4">Paiements à recevoir</font></b></p>


<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : Bloc de table
    // block_type  : list grid

    // server      : Vgreniers
    // userid      : 
    // passwd      : 
    // table       : cheques_espece
    // field       : cheques_espece.reglement, string, null, 50
    // field       : cheques_espece.CompteDereglement, int, null, 0
    // field       : cheques_espece.SommeDesomme, int, null, 0
    // disp_rows   : 10

    $w_disprows = 10;
    
    $w_sqlstr = "SELECT chequesespecestout.reglement, chequesespecestout.CompteDereglement, chequesespecestout.SommeDeprix FROM chequesespecestout";
    wed_read_list_process ("Vgreniers", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);

    // checksum    : 24064
?><table border="1" width="578" align="center">
    <tr>
        <td width="141">

            <p align="center"><b>Type de Paiement</b></p>
        </td>
        <td width="176">

            <p align="center"><b>Nombre (exposants)</b></p>
        </td>
        <td width="239">

            <p align="center"><b>Somme</b></p>
        </td>
    </tr>

<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop begin


    for ($w_i = 0; $w_i < $w_rows; $w_i++) {
    	$f_cheques_espece_reglement = $w_record[$w_i][0];
    	$f_cheques_espece_CompteDereglement = $w_record[$w_i][1];
    	$f_cheques_espece_SommeDesomme = $w_record[$w_i][2];

    // checksum    : 29563
?>    <tr>
        <td width="141">

            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,cheques_espece.reglement>
                                  // cache       : "write value"

                                  wed_write($f_cheques_espece_reglement);

                                  // checksum    : 38380
                              ?></p>
        </td>
        <td width="176">

            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,cheques_espece.CompteDereglement>
                                  // cache       : "write value"

                                  wed_write($f_cheques_espece_CompteDereglement-3);

                                  // checksum    : 4354
                              ?></p>
        </td>
        <td width="239">

            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,cheques_espece.SommeDesomme>
                                  // cache       : "write value"

                                  wed_write($f_cheques_espece_SommeDesomme);

                                  // checksum    : 30460
                              ?></p>
        </td>
    </tr>
<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop end


    }

    // checksum    : 42643
?>

</table>




<p align="center"><b><font size="4">Exposants par ordre alphabétique</font></b></p>
<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : Bloc de table
    // block_type  : list grid

    // server      : Vgreniers
    // userid      : 
    // passwd      : 
    // table       : Cheques
    // field       : Cheques.identifiant, string, null, 15
    // field       : Cheques.NomFamille, string, null, 50
    // field       : Cheques.Prenom, string, null, 50
    // field       : Cheques.reglement, string, null, 50
    // field       : Cheques.paiementrecu, string, null, 50
    // field       : Cheques.somme, string, null, 50
    // field       : Cheques.SommeDeprix, int, null, 0
    // field       : Cheques.PremierDeCommentaires, text, null, 0
    // disp_rows   : 350

    $w_disprows = 350;
    
    $w_sqlstr = "SELECT Cheques.identifiant, Cheques.NomFamille, Cheques.Prenom, Cheques.reglement, Cheques.paiementrecu, Cheques.somme, Cheques.SommeDeprix, Cheques.PremierDeCommentaires FROM Cheques";
    wed_read_list_process ("Vgreniers", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);

    // checksum    : 42714
?><table border="1" width="1288">
    <tr>
        <td width="91">
            <p align="center"><b>&nbsp;</b></p>
        </td>
        <td width="93">
            <p align="center"><b>&nbsp;</b></p>
        </td>
        <td width="166">
            <p align="center"><b>Nom</b></p>
        </td>
        <td width="183">
            <p align="center"><b>Prénom</b></p>
        </td>
        <td width="83">
            <p align="center"><b>Type</b></p>
        </td>
        <td width="82">
            <p align="center"><b>Somme due</b></p>
        </td>
        <td width="98">
            <p align="center"><b>Somme payée</b></p>
        </td>
        <td width="65">
            <p align="center"><b>Différence</b></p>
        </td>
        <td width="369">
            <p align="center"><b>Commentaires</b></p>
        </td>
    </tr>

<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop begin


    for ($w_i = 0; $w_i < $w_rows; $w_i++) {
    	$f_Cheques_identifiant = $w_record[$w_i][0];
    	$f_Cheques_NomFamille = $w_record[$w_i][1];
    	$f_Cheques_Prenom = $w_record[$w_i][2];
    	$f_Cheques_reglement = $w_record[$w_i][3];
    	$f_Cheques_paiementrecu = $w_record[$w_i][4];
    	$f_Cheques_somme = $w_record[$w_i][5];
    	$f_Cheques_SommeDeprix = $w_record[$w_i][6];
    	$f_Cheques_PremierDeCommentaires = $w_record[$w_i][7];

    // checksum    : 59716
?>    <tr>
        <td width="91">
            <p align="center">
			<form name="form1" action="inscriptionvg.php" method="get" TARGET=_BLANK>
		    		    
		    		    
                <p align="center"><input type="submit" name="Consultation" value="Consultation"><INPUT type=hidden name=chaine value=<?echo $f_Cheques_identifiant ?>>
</p>
            </form>
            <p>&nbsp;</p>
        </td>
        <td width="93">
            <p align="center">
			<form name="form2" action="saisiereglements.php" method="get" TARGET=_BLANK>
				<p align="center"><input type="submit" name="Paiement" value="Paiement"><INPUT type=hidden name=chaine value=<?echo $f_Cheques_identifiant ?>>
</p>
            </form>
            <p>&nbsp;</p>
        </td>
        <td width="166">
            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,Cheques.NomFamille>
                                  // cache       : "write value"

                                  wed_write($f_Cheques_NomFamille);

                                  // checksum    : 25872
                              ?></p>
        </td>
        <td width="183">
            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,Cheques.Prenom>
                                  // cache       : "write value"

                                  wed_write($f_Cheques_Prenom);

                                  // checksum    : 45107
                              ?></p>
        </td>
        <td width="83">
            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,Cheques.reglement>
                                  // cache       : "write value"

                                  wed_write($f_Cheques_reglement);

                                  // checksum    : 15409
                              ?></p>
        </td>
        <td width="82">
            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,Cheques.SommeDeprix>
                                  // cache       : "write value"

                                  wed_write(round($f_Cheques_SommeDeprix));

                                  // checksum    : 50762
                              ?></p>
        </td>
        <td width="98">
            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,Cheques.somme>
                                  // cache       : "write value"

                                  wed_write($f_Cheques_somme);

                                  // checksum    : 64328
                              ?></p>
        </td>
        <td width="65">
            <p align="center"><b></b></p>
            <p align="center">
			<?
                                  wed_write($f_Cheques_SommeDeprix-$f_Cheques_somme);			
			?>
			</p>
        </td>
        <td width="369">
            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,Cheques.PremierDeCommentaires>
                                  // cache       : "write value"

                                  wed_write($f_Cheques_PremierDeCommentaires);

                                  // checksum    : 33339
                              ?></p>
        </td>
    </tr>
<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop end
$totalprix = $totalprix + $f_Cheques_SommeDeprix ;
$totalsomme = $totalsomme + $f_Cheques_somme ;
    }

    // checksum    : 42643
?>
<tr>
        <td width="91">
            <p align="center">
            <p>&nbsp;</p>
        </td>
        <td width="93">
            <p align="center">
            <p>&nbsp;</p>
        </td>
        <td width="166">
              <p>&nbsp;</p>
        </td>
        <td width="183">
            <p>&nbsp;</p>
        </td>
        <td width="83">
            <p>&nbsp;</p>
        </td>
        <td width="82">
                         <p align="center"><b>
			<?
                                  wed_write($totalprix);			
			?>
		</b>
	</p>
    </td>
        <td width="98">
                         <p align="center"><b>
			<?
                                  wed_write($totalsomme);			
			?>
		</b>
	</p>

        </td>
        <td width="65">
                         <p align="center"><b>
			<?
                                  wed_write($totalprix-$totalsomme);			
			?>
		</b>
	</p>
        </td>
        <td width="369">
            <p>&nbsp;</p>
        </td>
    </tr>
</table>

</body>

</html>
